module vlib.util.Text ;

import vlib.Types;

char[] ctfe_replace(char[] str, char from , char to){
	char[] ret ;
	foreach( int i, c ; str ) {
		if ( c is from ) ret ~= to ;
		else ret	~= c ;
	}
	return ret ;
}

void negative_push(ubyte[] tmp, char[] it, ref int i){
	i 	-= it.length ;
	tango.stdc.string.memcpy(&tmp[i], &it[0], it.length);
}
